Method and apparatus for peer-to-peer connection using wireless local area network (lan) in mobile communication terminal

ABSTRACT

An apparatus and a method for Peer-to-Peer (P2P) connection using a wireless Local Area Network (LAN) in a mobile communication terminal are provided. The method includes detecting a P2P connection attempt of a new terminal not connected to P2P communication, during P2P communication with at least one terminal, determining whether the mobile communication terminal operates as a slave terminal or a group owner in the P2P connection, and when the mobile communication terminal operates as the slave terminal, transmitting a signal indicating that the P2P connection attempt of the new terminal is detected, to a terminal operating as the group owner in the P2P connection.

PRIORITY

This application is a continuation application of a prior application Ser. No. 12/903,532, filed on Oct. 13, 2010, which claimed the benefit under 35 U.S.C. §119(a) of a Korean patent application filed in the Korean Intellectual Property Office on Oct. 13, 2009 and assigned Ser. No. 10-2009-0097146, the entire disclosure of each of which is hereby incorporated by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention:

The present invention relates to a method and an apparatus for Peer-to-Peer (P2P) connection using a wireless Local Area Network (LAN) in a mobile communication terminal. More particularly, the present invention relates to a method and an apparatus for connecting at least one terminal with another terminal in process of P2P communication using the P2P communication in a mobile communication terminal

2. Description of the Related Art:

A wireless local area communication network, which is defined by the Institute of Electrical and Electronics Engineers (IEEE) 802.11 standard, defines an infrastructure mode and an ad-hoc mode. The ad-hoc mode allows a plurality of IEEE 802.11 standard radio stations to directly communicate with each other without using access points or other wired network connections, which is also referred to as a Peer-to-Peer (P2P) mode. The P2P mode is useful by configuring a wireless network rapidly and easily without a wireless infrastructure. However, the P2P mode resource data rate is limited to 11 Mbps, security is limited, and it is difficult to reduce power consumption.

Hence, recently, a P2P mode including a group owner and a slave terminal is suggested.

FIG. 1 illustrates a conventional P2P connection with a structure including the group owner and the slave terminal between mobile communication terminals. FIG. 2 is a conventional P2P connectable range of a mobile communication terminal.

In FIG. 1, a terminal 100 wanting a P2P operation searches a P2P terminal 102 in its vicinity through a P2P discovery procedure in step 110. Upon finding the P2P terminal 102, the terminal 100 wanting the P2P operation builds a P2P network with the searched P2P terminal 102 through a P2P group owner negotiation procedure and a channel negotiation procedure in step 112. As a result, when the terminal 100 wanting the P2P operation is set to the slave terminal and the searched P2P terminal 102 is set to the group owner, the terminal 100 determined as the slave terminal attempts a connection to the terminal 102 determined as the group owner and thus two terminals 100 and 102 are connected with the P2P communication in step 114.

However, in the group owner/slave terminal structure, when the slave terminal, not the group owner terminal, detects the P2P connection attempt of another terminal, the other terminal is not connectable although the other terminal is in the P2P connection area. For example, in FIG. 2, when a terminal B 202 and a terminal C 204 are in the P2P connection and the terminal B 202 serving as the slave terminal detects the P2P connection attempt of another terminal A 200 as illustrated in FIG. 2, the P2P connection of the terminal A 200 with the terminal B 202 and the terminal C 204 is impossible because the terminal A 200, which travels in the connection area of the terminal B 202 serving as the slave terminal, is out of the connection area of the terminal C 204 serving as the group owner.

Therefore, a need exists for a method and apparatus for connecting a mobile communication terminal out of a connection area with one of a plurality of mobile communication terminals in a P2P connection.

SUMMARY OF THE INVENTION

An aspect of the present invention is to address the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the present invention is to provide a method and an apparatus for a Peer-to-Peer (P2P) connection using a wireless Local Area Network (LAN) in a mobile communication terminal.

Another aspect of the present invention is to provide a method and an apparatus for additionally connecting another terminal in process of communication with P2P terminals in a mobile communication terminal.

Yet another aspect of the present invention is to provide a method and an apparatus for P2P-connecting another terminal by re-negotiating a group owner terminal when a mobile communication terminal in P2P connection detects a P2P connection attempt of the other terminal.

According to an aspect of the present invention, a method for P2P connection using a wireless LAN in a mobile communication terminal is provided. The method includes detecting a P2P connection attempt of a new terminal not connected to P2P communication, during P2P communication with at least one terminal, determining whether the mobile communication terminal operates as a slave terminal or a group owner in the P2P connection, and when the mobile communication terminal operates as the slave terminal, transmitting a signal indicating that the P2P connection attempt of the new terminal is detected, to a terminal operating as the group owner in the P2P connection.

According to another aspect of the present invention, an apparatus for P2P connection using a wireless LAN in a mobile communication terminal is provided. The apparatus includes a controller for detecting a P2P connection attempt of a new terminal not connected to P2P communication, during P2P communication with at least one terminal, and determining whether the mobile communication terminal operates as a slave terminal or a group owner in the P2P connection; and a communication module for, when the mobile communication terminal operates as the slave terminal, transmitting a signal indicating that the P2P connection attempt of the new terminal is detected, to a terminal operating as the group owner in the P2P connection under control of the controller.

Other aspects, advantages, and salient features of the invention will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses exemplary embodiments of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of certain exemplary embodiments the present invention will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:

FIG. 1 illustrates a conventional Peer-to-Peer (P2P) connection with a structure including a group owner and a slave terminal between mobile communication terminals;

FIG. 2 illustrates a conventional P2P connectable range of a mobile communication terminal;

FIG. 3 illustrates a P2P connection through group owner re-negotiation between mobile communication terminals according to an exemplary embodiment of the present invention;

FIG. 4 illustrates operations of a mobile communication terminal serving as a slave terminal in a P2P connection according to an exemplary embodiment of the present invention;

FIG. 5 illustrates operations of a mobile communication terminal serving as a group owner in a P2P connection according to an exemplary embodiment of the present invention; and

FIG. 6 is a block diagram of a mobile communication terminal according to an exemplary embodiment of the present invention.

Throughout the drawings, like reference numerals will be understood to refer to like parts, components and structures.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of exemplary embodiments of the invention as defined by the claims and their equivalents. It includes various specific details to assist in that understanding but these are to be regarded as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from scope and spirit of the invention. In addition, descriptions of well-known functions and constructions may be omitted for clarity and conciseness.

The terms and words used in the following description and claims are not limited to the bibliographical meanings, but, are merely used by the inventor to enable a clear and consistent understanding of the invention. Accordingly, it should be apparent to those skilled in the art that the following description of exemplary embodiments of the present invention is provided for illustration purpose only and not for the purpose of limiting the invention as defined by the appended claims and their equivalents.

It is to be understood that the singular forms “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to “a component surface” includes reference to one or more of such surfaces.

Exemplary embodiments of the present invention provide a method and an apparatus of a mobile communication terminal which is in Peer-to-Peer (P2P) connection with at least one mobile communication terminal, for connecting with another mobile communication terminal using the P2P communication.

Hereinafter, exemplary embodiments of the present invention provide two terminals that are in the P2P connection and the terminal serving as a slave terminal detects a P2P connection attempt of another terminal The exemplary embodiments of the present invention are equally applicable to a case where a plurality of terminals are connected using the P2P communication and one of the terminals serving as the slave terminal detects the P2P connection of another terminal

FIG. 3 illustrates a P2P connection through group owner re-negotiation between mobile communication terminals according to an exemplary embodiment of the present invention.

Referring to FIG. 3, a terminal B 302 wanting a P2P operation examines whether there is a P2P terminal in the vicinity through a P2P discovery procedure in step 310. Upon detecting a terminal C 304 as a neighbor P2P terminal, the terminal B 302 wanting the P2P operation establishes a P2P network through a P2P group owner negotiation procedure and a channel negotiation procedure with the detected P2P terminal C 304 in step 312. Herein, when the terminal B 302 is determined as a slave terminal and the terminal C 304 is determined as a group owner according to the group owner negotiation, the terminal B 302 set to the slave terminal attempts a connection to the terminal C 304 set to the group owner in step 314. Thus, the terminal B 302 and the terminal C 304 are connected with a P2P communication.

A terminal A 300 checks for a neighbor P2P terminal through the P2P discovery procedure in step 316, and the terminal B 302 serving as the slave terminal receives a discovery signal which is transmitted in the P2P discovery procedure of the terminal A 300.

To determine whether the terminal A 300 is connectable to the terminal C 304 serving as the group owner, the terminal B 302 serving as the slave terminal transmits a P2P discovery notification signal and receives a response signal of the P2P discovery notification from the terminal C 304 in step 318. If it is determined that the discovery signal of the terminal A 300 is not received, the terminal C 304 transmits a P2P discovery notification response signal indicating that the group owner may be delegated, to the terminal B 302 in step 318. In contrast, if it is determined that the discovery signal of the terminal A 300 is received, the terminal C 304 transmits a P2P discovery notification response signal indicative of a reception of the discovery signal of the terminal A 300, to the terminal B 302 in step 318, and then operates to connect to the terminal A 300 with the P2P communication. The P2P connection is carried out in the same manner as a conventional P2P connection.

The terminal B 302 receiving the P2P discovery notification response signal indicating that the group owner may be delegated transmits a signal for group owner re-negotiation to the terminal A 300 and the terminal C 304 in step 320. Hence, the terminal A 300, the terminal B 302, and the terminal C 304 perform the group owner re-negotiation procedure. Herein, in the group owner re-negotiation procedure, a terminal capable of connecting all existing P2P terminals and a new terminal to participate in the P2P connection is determined as the group owner terminal If any one of the existing P2P terminals is not connected for the sake of the connection of the new terminal, the connection of the new terminal is rejected.

The terminal A 300, the terminal B 302, and the terminal C 304 build P2P networks through a P2P connection procedure in step 322, and exchange packets in step 324.

FIG. 4 illustrates operations of a mobile communication terminal serving as a slave terminal in a P2P connection according to an exemplary embodiment of the present invention.

Referring to FIG. 4, in step 401, the mobile communication terminal operating as the slave terminal in the P2P connection examines whether a P2P discovery signal of another terminal is received in a process of the slave terminal operation. If the P2P discovery signal of the other terminal is not received, the mobile communication terminal exchanges packets with terminals connected to the P2P communication in step 411.

In contrast, upon receiving the P2P discovery signal of the other terminal, the mobile communication terminal transmits a P2P discovery notification signal indicative of a detection of the P2P connection attempt of the other terminal, to the group owner terminal in step 403. The P2P discovery notification signal may include an IDentifier (ID) of the other terminal.

In step 405, the mobile communication terminal determines whether a signal indicating that the group owner may be delegated is received from the group owner terminal in response to the P2P discovery notification signal. Upon receiving the signal indicating that the group owner may be delegated, the mobile communication terminal performs a group owner re-negotiation procedure with the group owner terminal and the other terminal by transmitting a signal for the group owner re-negotiation to the group owner terminal and the other terminal in step 407. As a result, the group owner is designated to a terminal capable of connecting all existing P2P terminals and a new terminal to participate in the P2P connection. If any one of the existing P2P terminals is not connected for the sake of the connection of the new terminal, the P2P connection of the new terminal may be rejected. For example, the group owner is determined as a terminal capable of receiving signals from all existing P2P terminals and the new terminal The existing P2P terminals and the new terminal each examine whether it may receive signals from all of the existing P2P terminals and the new terminal, and inform of the result to the other terminal Consequently, the terminal receiving the signals from all of the terminals may be determined as the group owner terminal.

The mobile communication terminal builds a P2P network through the P2P connection procedure with the existing P2P terminals and the new terminal in step 409, and exchanges packets with the P2P terminals in step 411. In step 413, the mobile communication terminal determines whether a P2P end event occurs. When the P2P connection end event occurs, the mobile communication terminal performs a P2P connection end procedure and finishes the process. In contrast, when the P2P connection end event does not occur, the mobile communication terminal returns to step 401. Herein, when the mobile communication terminal is determined as the group owner terminal in the group owner re-negotiation procedure, the mobile communication terminal operates as illustrated in FIG. 5, without returning to step 401. That is, when the mobile communication terminal still serves as the slave terminal in the P2P connection, the mobile communication terminal returns to step 401. When the mobile communication terminal is changed to the group owner terminal, it carries out operations of FIG. 5.

Meanwhile, if the mobile communication does not receive the signal indicating that the group owner may be delegated, the mobile communication terminal determines whether a signal indicative of the detection of the other terminal is received from the group owner terminal in response to the P2P discovery notification signal in step 415. Upon receiving the signal indicative of the detection of the other terminal from the group owner terminal, the mobile communication terminal exchanges packets with the P2P terminals in step 411. If the mobile communication terminal does not receive the signal indicative of the detection of the other terminal, the mobile communication terminal returns to step 405.

FIG. 5 illustrates operations of a mobile communication terminal serving as a group owner in a P2P connection according to an exemplary embodiment of the present invention.

Referring to FIG. 5, in step 501, the mobile communication terminal operating as the group owner in the P2P connection examines whether a P2P discovery signal of another terminal is received in a process of a group owner operation. Upon receiving a P2P discovery signal of the other terminal, the mobile communication terminal conducts the P2P connection procedure with the other terminal in step 515. Accordingly, the P2P connection procedure is carried out in the same manner as the conventional procedure. The mobile communication terminal exchanges packets with the P2P terminals in step 511.

If the mobile communication terminal does not receive the P2P discovery signal of the other terminal, the mobile communication terminal determines whether a P2P discovery notification signal indicating that a P2P connection attempt of the other terminal is detected, is received from the terminal serving as the slave terminal in the P2P connection in step 503. If it is determined that the P2P discovery notification signal from terminal serving as the slave terminal is not received, the mobile communication terminal exchanges packets with the P2P terminals in step 511.

In contrast, upon receiving the P2P discovery notification signal from the terminal operating as the slave terminal in step 503, the mobile communication terminal transmits a signal indicating the group owner may be delegated, in response to the P2P discovery notification signal in step 505. Although it is not illustrated, when receiving the P2P discovery signal of the other terminal and then receiving the P2P discovery notification message from the slave terminal, the mobile communication terminal may determine that the group owner terminal and the slave terminal receive the P2P discovery signal of the same terminal by comparing an ID of the P2P discovery notification message with the ID of the other terminal, and transmit the signal indicating that the other terminal is detected, in response to the P2P discovery notification signal.

The mobile communication terminal transmitting the signal indicating that the group owner may be delegated in step 505, conducts the group owner re-negotiation procedure with the slave terminal and the other terminal in step 507. Accordingly, the group owner is designated to the terminal capable of connecting all existing P2P terminals and a new terminal to participate in the P2P connection. If any one of the existing P2P terminals is not connected for the sake of the connection of the new terminal, the P2P connection of the new terminal may be rejected. For example, the group owner is determined as a terminal capable of receiving signals from all of the existing P2P terminals and the new terminal.

The mobile communication terminal builds the P2P network through the P2P connection procedure with the existing P2P terminals and the new terminal in step 509, exchange packets with the P2P terminals in step 511, and determines whether a P2P end event occurs in step 513. If it is determined that the P2P connection end event occurs, the mobile communication terminal performs the P2P connection end procedure and finishes the process. In contrast, if it is determined that the P2P connection end event does not occur, the mobile communication terminal returns to step 501. Herein, when the mobile communication terminal is determined as the slave terminal in the group owner re-negotiation procedure, the mobile communication terminal operates as illustrated in FIG. 4, without returning to step 501. That is, when the mobile communication terminal still serves as the group owner terminal in the P2P connection, the mobile communication terminal returns to step 501. When the mobile communication terminal is changed to the slave terminal, the mobile communication terminal carries out the operations of FIG. 4.

FIG. 6 is a block diagram of a mobile communication terminal according to an exemplary embodiment of the present invention.

Referring to FIG. 6, the mobile communication terminal of FIG. 6 includes a communication module 600 and a controller 610. The controller 610 includes a Dynamic Host Configuration Protocol (DHCP) controller 612 and a P2P connection manager 614. Herein, the mobile communication terminal is a terminal supporting not only a voice communication function but also Wireless Fidelity (WiFi) using a wireless Local Area Network (LAN).

The communication module 600 includes a block for communicating with a cellular network and a block for communicating with the wireless LAN, and processes signals transmitted and received to and from a base station or an Access Point (AP) over an antenna (not illustrated). More particularly, the communication module 600 processes to transmit and receive the signals for the P2P connection with another neighbor terminal, and exchanges the packets with the P2P-connected terminals under the control of the controller 610.

The controller 610 controls and processes operations of the mobile communication terminal. By including the DHCP controller 612 for controlling the DHCP to support the P2P and the P2P connection manager 614 for managing the P2P connection with the neighbor terminal, the controller 610 performs the P2P connection with the neighbor terminal, and controls and processes to connect with the other terminal using the P2P communication by detecting the P2P connection attempt of the other terminal during the P2P connection. That is, when receiving the P2P discovery notification signal notifying that the mobile communication terminal in the P2P connection with the other terminal receives the P2P discovery signal attempting the P2P connection from a new terminal, or receives the P2P discovery signal of the new terminal from the other terminal, the controller 610 functions for the P2P connection of the new terminal Herein, depending on whether the mobile communication terminal served as a slave terminal or a group owner in an existing P2P connection, the controller 610 performs different operations to connect the new terminal.

In a case where the mobile communication terminal functions in a slave terminal mode in the existing P2P connection, if the P2P discovery signal of the new terminal which is not connected in the existing P2P communication is received, the controller 610 controls to transmit the P2P discovery notification signal to the terminal serving as the group owner in the existing P2P connection. If the group owner delegable signal from the group owner terminal is received, the controller 610 determines the group owner by performing the group owner re-negotiation procedure with the existing P2P-connected terminals and the new terminal, and controls and processes to exchange packets through the P2P connection procedure.

In a case where the mobile communication terminal functions in a group owner mode in the existing P2P connection, when receiving the P2P discovery signal of the new terminal which is not connected in the existing P2P communication, the controller 610 conducts the same process as a conventional process to connect the new terminal to the P2P communication. When receiving the P2P discovery notification signal from the terminal operating the slave terminal of the existing P2P connection, the controller 610 controls and processes to transmit the signal indicating the group owner may be delegated to the terminal operating as the slave terminal The controller 610 determines the group owner by performing the group owner re-negotiation procedure with the existing P2P-connected terminals and the new terminal, and controls and processes to exchange packets through the P2P connection procedure.

Herein, the group owner is designated to the terminal capable of connecting all of the existing P2P terminals and the new terminal to participate in the P2P connection. If any one of the existing P2P terminals is not connected for the sake of the connection of the new terminal, the connection of the new terminal is rejected. For example, the group owner is determined as the terminal capable of receiving signals from all of the existing P2P terminals and the new terminal.

When the mobile communication terminal in the P2P connection detects the P2P connection attempt of another terminal, the mobile communication terminal connects the other terminal to the P2P communication by re-negotiating the group owner terminal Therefore, a terminal traveling in the area connectable to the terminal serving as the slave terminal in the P2P connection and out of the connection area to the terminal serving as the group owner can participate in the P2P connection.

While the invention has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents. 

What is claimed is:
 1. A method comprising: detecting, at a first device during a first connection with a second device, an attempt by a third device for a second connection; and when the first device does not operate as a host device in the first connection: transmitting to a device operating as the host device a signal indicating that the attempt is detected; re-determining the first device as the host device in at least the first connection; and establishing the second connection with the third device.
 2. The method of claim 1, wherein the device operating as the host device comprises the second device.
 3. The method of claim 1, wherein at least one of the first connection and the second connection comprises a Peer-to-Peer (P2P) connection using a wireless Local Area Network (LAN).
 4. The method of claim 1, wherein the detecting comprises receiving a Peer-to-Peer (P2P) discovery signal of the third device.
 5. The method of claim 1, wherein the host device in the first connection comprises a group owner in the first connection.
 6. The method of claim 1, further comprising exchanging packets with the device operating as the host device or the third device through at least one of the first connection or the second connection.
 7. The method of claim 1, further comprising, when the first device operates as the host device, establishing the second connection with the third device.
 8. The method of claim 1, further comprising: when the first device operates as the host device, determining whether the signal indicating that the attempt is detected is received from a device operating as a slave device in the first connection; and when receiving the signal from the device operating as the slave device, transmitting to the device operating as the slave device a signal indicating that the third device is detected, based at least in part on a determination that an identifier (ID) included in the signal received from the device operating as the slave device is identical to an ID of the third device.
 9. The method of claim 8, further comprising, when the ID of the third device included in the received signal and the ID of the third device detected by the first device are not identical, transmitting a signal indicating that the host device can be re-determined to the device operating as the slave device.
 10. An apparatus comprising: a controller configured to: detect a second connection attempt of a third device, during communication with a second device using a first connection; re-determine the apparatus as the host device in at least the first connection; and establish the second connection with the third device; and a communication module configured to transmit to a device operating as a host device a signal indicating that the attempt is detected.
 11. The apparatus of claim 10, wherein the host device is re-determined to receive signals of the at least one the second device and the third device.
 12. The apparatus of claim 10, wherein the device operating as the host device comprises the second device.
 13. The apparatus of claim 10, wherein the controller exchanges packets with at least one of the second device and the third device connected to at least one of the first connection and the second connection.
 14. The apparatus of claim 10, wherein the communication module receives a signal indicating that the second connection attempt of the third device is detected, from the second device operating as the host device in the first connection.
 15. The apparatus of claim 10, wherein, when the apparatus operates as the host device, the communication module performs a Peer-to-Peer (P2P) connection procedure with the third device under the control of the controller.
 16. The apparatus of claim 15, wherein, the controller, when the apparatus as the host device determines whether a signal indicating that the second connection attempt of the third device is detected is received from the second device operating as the slave device in the first connection and when receiving the signal indicating that the second connection attempt of the third device is detected, examines whether an IDentifier (ID) of the third device included in the received signal is identical to an ID of the third device by the apparatus, and wherein, when the ID of the third device included in the received signal and the ID of the third device detected by the apparatus are identical, the communication module transmits a signal indicating that the third device is detected, to the second device operating as the slave device.
 17. The apparatus of claim 16, wherein, when the ID of the third device included in the received signal and the ID of the third device detected by the apparatus are not identical, the communication module transmits to a group owner delegable signal to the second device operating as the slave device.
 18. The apparatus of claim 10, wherein the controller receives a Peer-to-Peer (P2P) discovery signal of the third device.
 19. The apparatus of claim 10, wherein, the controller, when the apparatus operates as the host device, establish the second connection with the third device.
 20. A non-transitory machine-readable storage device storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising: detecting, at a first device during a first connection with a second device, an attempt by a third device for a second connection; and when the first device does not operate as a host device in the first connection: transmitting to a device operating as the host device a signal indicating that the attempt is detected; re-determining the first device as the host device in at least the first connection; and establishing the second connection with the third device. 